/*     */ package com.yss.sofa.cml.text;
/*     */ 
/*     */ import com.yss.sofa.cml.CloneableObject;
/*     */ import com.yss.sofa.cml.SerializableObject;
/*     */ 
/*     */ public class TextLine
/*     */   implements SerializableObject, CloneableObject<TextLine>
/*     */ {
/*     */   private static final long serialVersionUID = 1L;
/*     */   protected float rightIndent;
/*     */   protected float leftIndent;
/*     */   protected float lineHeight;
/*     */   protected float lineWidth;
/*     */   protected int lineNumber;
/*     */   protected boolean firstLine;
/*     */   protected boolean lastLine;
/*     */   protected float scaleX;
/*     */   protected float scaleY;
/*     */   protected float offsetX;
/*     */   protected float offsetY;
/*     */   protected char[] chars;
/*     */   protected int textOffset;
/*     */   protected int characterCount;
/*     */   protected Segment[] segments;
/*     */ 
/*     */   public TextLine()
/*     */   {
/*  33 */     this.scaleX = 1.0F;
/*  34 */     this.scaleY = 1.0F;
/*     */   }
/*     */ 
/*     */   public void reset() {
/*  38 */     this.textOffset = 0;
/*     */   }
/*     */ 
/*     */   public float getRightIndent() {
/*  42 */     return this.rightIndent;
/*     */   }
/*     */ 
/*     */   public float getLeftIndent() {
/*  46 */     return this.leftIndent;
/*     */   }
/*     */ 
/*     */   public int getLineNumber() {
/*  50 */     return this.lineNumber;
/*     */   }
/*     */ 
/*     */   public float getLineWidth() {
/*  54 */     return this.lineWidth;
/*     */   }
/*     */ 
/*     */   public float getLineHeight() {
/*  58 */     return this.lineHeight;
/*     */   }
/*     */ 
/*     */   public boolean isFirstLine() {
/*  62 */     return this.firstLine;
/*     */   }
/*     */ 
/*     */   public boolean isLastLine() {
/*  66 */     return this.lastLine;
/*     */   }
/*     */ 
/*     */   public float getScaleX() {
/*  70 */     return this.scaleX;
/*     */   }
/*     */ 
/*     */   public float getScaleY() {
/*  74 */     return this.scaleY;
/*     */   }
/*     */ 
/*     */   public float getOffsetX() {
/*  78 */     return this.offsetX;
/*     */   }
/*     */ 
/*     */   public float getOffsetY() {
/*  82 */     return this.offsetY;
/*     */   }
/*     */ 
/*     */   public char[] getChars() {
/*  86 */     return this.chars;
/*     */   }
/*     */ 
/*     */   public int getTextOffset() {
/*  90 */     return this.textOffset;
/*     */   }
/*     */ 
/*     */   public int getCharacterCount() {
/*  94 */     return this.characterCount;
/*     */   }
/*     */ 
/*     */   public void setSegments(Segment[] segments) {
/*  98 */     this.segments = segments;
/*     */   }
/*     */ 
/*     */   public Segment[] getSegments() {
/* 102 */     return this.segments;
/*     */   }
/*     */ 
/*     */   public void setRightIndent(float rightIndent) {
/* 106 */     this.rightIndent = rightIndent;
/*     */   }
/*     */ 
/*     */   public void setLeftIndent(float leftIndent) {
/* 110 */     this.leftIndent = leftIndent;
/*     */   }
/*     */ 
/*     */   public void setLineHeight(float lineHeight) {
/* 114 */     this.lineHeight = lineHeight;
/*     */   }
/*     */ 
/*     */   public void setLineWidth(float lineWidth) {
/* 118 */     this.lineWidth = lineWidth;
/*     */   }
/*     */ 
/*     */   public void setLineNumber(int lineNumber) {
/* 122 */     this.lineNumber = lineNumber;
/*     */   }
/*     */ 
/*     */   public void setFirstLine(boolean firstLine) {
/* 126 */     this.firstLine = firstLine;
/*     */   }
/*     */ 
/*     */   public void setLastLine(boolean lastLine) {
/* 130 */     this.lastLine = lastLine;
/*     */   }
/*     */ 
/*     */   public void setScaleX(float scaleX) {
/* 134 */     this.scaleX = scaleX;
/*     */   }
/*     */ 
/*     */   public void setScaleY(float scaleY) {
/* 138 */     this.scaleY = scaleY;
/*     */   }
/*     */ 
/*     */   public void setOffsetX(float offsetX) {
/* 142 */     this.offsetX = offsetX;
/*     */   }
/*     */ 
/*     */   public void setOffsetY(float offsetY) {
/* 146 */     this.offsetY = offsetY;
/*     */   }
/*     */ 
/*     */   public void setChars(char[] chars) {
/* 150 */     this.chars = chars;
/*     */   }
/*     */ 
/*     */   public void setTextOffset(int textOffset) {
/* 154 */     this.textOffset = textOffset;
/*     */   }
/*     */ 
/*     */   public void setCharacterCount(int characterCount) {
/* 158 */     this.characterCount = characterCount;
/*     */   }
/*     */ 
/*     */   public String toString() {
/* 162 */     return "TextLine[x=" + this.offsetX + ", y=" + this.offsetY + ", leftX=" + this.leftIndent + ", rightX=" + this.rightIndent + ", width=" + this.lineWidth + ", height=" + this.lineHeight + ", scaleX=" + this.scaleX + ", scaleY=" + this.scaleY + "]";
/*     */   }
/*     */ 
/*     */   public TextLine clone()
/*     */   {
/* 167 */     TextLine clone = null;
/*     */     try {
/* 169 */       clone = (TextLine)super.clone();
/*     */     } catch (CloneNotSupportedException e) {
/* 171 */       throw new RuntimeException(e);
/*     */     }
/* 173 */     return clone;
/*     */   }
/*     */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.text.TextLine
 * JD-Core Version:    0.6.0
 */